<?php


namespace EchoPHP\Database\Query\Grammar;


class MysqlGrammar extends Grammar {

    /**
     * @inheritDoc
     */
    public function compileSelectLimit(string $query, int $rowNumFrom, int $rowNumTo, array &$bindings) {
        $query .= ' LIMIT ?,?';
        $bindings[] = $rowNumFrom;
        $bindings[] = $rowNumTo - $rowNumFrom;
        return $query;
    }
}